package com.one.shopping.adapter;

import android.content.Context;

import com.one.shopping.R;
import com.one.shopping.entity.Users;

/**
 * @author 柯尊诚
 * @version 1.0
 * @date 创建时间：2016/1/10 9:30
 */
public class UsersAdapter extends CommonAdapter<Users>{

    public UsersAdapter(Context context, int layoutId) {
        super(context, layoutId);
    }

    @Override
    protected void convert(ViewHolder vh, Users users) {
        vh.setText(R.id.user_list_id_tv, "" + users.getId());
        vh.setText(R.id.user_list_name_tv, users.getName());
    }
}
